package android.support.v4.view;

import android.database.DataSetObserver;

final class w extends DataSetObserver
  implements ay, az
{
  private int b;

  public final void a(int paramInt)
  {
    float f = 0.0F;
    if (this.b != 0)
      return;
    this.a.a(this.a.a.b(), this.a.a.a());
    if (PagerTitleStrip.a(this.a) >= 0.0F)
      f = PagerTitleStrip.a(this.a);
    this.a.a(this.a.a.b(), f, true);
  }

  public final void a(int paramInt, float paramFloat)
  {
    int i = paramInt;
    if (paramFloat > 0.5F)
      i = paramInt + 1;
    this.a.a(i, paramFloat, false);
  }

  public final void a(v paramv1, v paramv2)
  {
    this.a.a(paramv1, paramv2);
  }

  public final void b(int paramInt)
  {
    this.b = paramInt;
  }

  public final void onChanged()
  {
    float f = 0.0F;
    this.a.a(this.a.a.b(), this.a.a.a());
    if (PagerTitleStrip.a(this.a) >= 0.0F)
      f = PagerTitleStrip.a(this.a);
    this.a.a(this.a.a.b(), f, true);
  }
}